package com.p04.study;

import com.p04.inters.ICar;
import com.p04.inters.IFuelCar;
import com.p04.inters.IMaintenance;

/**
 * 修理工
 */
public class Mechanic {
    /**
     * 维护燃油车的方法
     * @param car
     */
    public void doFuelserver(IFuelCar car){
           //换机油
           car.changeOil();
           //调节引擎
          car.turnupEngine();
    }

    /**
     * 车的保养
     * @param car
     */
    public void doMaintenanceserver(IMaintenance car){
          car.maintenance();
    }
}
